<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>cefsharp test</title>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<input type="text" id="txtName">
<button id="btnSubmit">调C#</button>
<br>
<input type="text" id="lbWeb">
<br>
<input type="text" id="lbClient">
<script> 
    // 新式注入
    CefSharp.BindObjectAsync("googleBrowser");
   $(function () {
        $("#btnSubmit").click(function () {
            var uName= $("#txtName").val();
            var a = googleBrowser.getName(uName);
           $("#lbWeb").val(a);
        });
    });
	
	function test(b) { 
		$("#lbClient").val("来自客户端:"+b);
		return "ok"
	};
</script>
</body>
</html>